package com.suneee.cloud.admin.entity;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import com.suneee.context.page.PageRequest;
import com.suneee.enterprise.entity.Enterprise;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.Table;
import com.suneee.role.entity.Role;

@SuppressWarnings("serial")
@Entity
@Table(name = "administrator")
public class AdministratorBean extends PageRequest implements Serializable {

	private Integer adminId;

	private String enterpriseCode;

	private String account;

	private String password;

	private String name;

	private String nick;

	private String photo;

	private boolean sex;

	private String enabled;//0 false ,1 true

	private String email;

	private String mobile;

	private Date registerTime;

	private Date lastUpdateTime;

	private String address;

	private String signature;

	private String backgroundImg;

	private String createPerson;
	
	private Timestamp startRgisterTime;
	
	private Timestamp endRgisterTime;
	
	private Timestamp startLastUpdateTime;
	
	private Timestamp endLastUpdateTime;
	
	private String newPassword;
	
	private boolean admin;
	
	private List<Role> roleList;
	
	private Enterprise enterprise;
	
	private List<Integer> roleIdList;
	
	private String sessionId;
	
	private String fileUrl;
	
	private String identityStr;
	
	private String deptCode;
	
	private String enterpriseName;

	public AdministratorBean() {

	}

	public Integer getAdminId() {
		return adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNick() {
		return nick;
	}

	public void setNick(String nick) {
		this.nick = nick;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public boolean isSex() {
		return sex;
	}

	public void setSex(boolean sex) {
		this.sex = sex;
	}

	public String getEnabled() {
		return enabled;
	}

	public void setEnabled(String enabled) {
		this.enabled = enabled;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getSignature() {
		return signature;
	}

	public void setSignature(String signature) {
		this.signature = signature;
	}

	public String getBackgroundImg() {
		return backgroundImg;
	}

	public void setBackgroundImg(String backgroundImg) {
		this.backgroundImg = backgroundImg;
	}

	public String getCreatePerson() {
		return createPerson;
	}

	public void setCreatePerson(String createPerson) {
		this.createPerson = createPerson;
	}

	public String getNewPassword() {
		return newPassword;
	}

	public void setNewPassword(String newPassword) {
		this.newPassword = newPassword;
	}

	public Timestamp getStartRgisterTime() {
		return startRgisterTime;
	}

	public void setStartRgisterTime(Timestamp startRgisterTime) {
		this.startRgisterTime = startRgisterTime;
	}

	public Timestamp getEndRgisterTime() {
		return endRgisterTime;
	}

	public void setEndRgisterTime(Timestamp endRgisterTime) {
		this.endRgisterTime = endRgisterTime;
	}

	public Timestamp getStartLastUpdateTime() {
		return startLastUpdateTime;
	}

	public void setStartLastUpdateTime(Timestamp startLastUpdateTime) {
		this.startLastUpdateTime = startLastUpdateTime;
	}

	public Timestamp getEndLastUpdateTime() {
		return endLastUpdateTime;
	}

	public void setEndLastUpdateTime(Timestamp endLastUpdateTime) {
		this.endLastUpdateTime = endLastUpdateTime;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public List<Role> getRoleList() {
		return roleList;
	}

	public void setRoleList(List<Role> roleList) {
		this.roleList = roleList;
	}

	public Enterprise getEnterprise() {
		return enterprise;
	}

	public void setEnterprise(Enterprise enterprise) {
		this.enterprise = enterprise;
	}

	public List<Integer> getRoleIdList() {
		return roleIdList;
	}

	public void setRoleIdList(List<Integer> roleIdList) {
		this.roleIdList = roleIdList;
	}

	public String getSessionId() {
		return sessionId;
	}

	public void setSessionId(String sessionId) {
		this.sessionId = sessionId;
	}

	public String getFileUrl() {
		return fileUrl;
	}

	public void setFileUrl(String fileUrl) {
		this.fileUrl = fileUrl;
	}

	public String getIdentityStr() {
		return identityStr;
	}

	public void setIdentityStr(String identityStr) {
		this.identityStr = identityStr;
	}

	public String getDeptCode() {
		return deptCode;
	}

	public void setDeptCode(String deptCode) {
		this.deptCode = deptCode;
	}

	public String getEnterpriseName() {
		return enterpriseName;
	}

	public void setEnterpriseName(String enterpriseName) {
		this.enterpriseName = enterpriseName;
	}
}
